home *** CD-ROM | disk | FTP | other *** search
- >>3. Are there any useful tips for ensuring that your program
- >> runs at a similar speed on different speed Amigas, particularly
- >> when you're using AMAL?
- >
- > AC> Use the vertical blank interrupt. In your main program, put "Wait
- > AC> Vbl"
- > AC> at the end of your main loop, and use a "P" command at the end of a
- > AC> loop
- > AC> in AMAL.. If your loops are long, there may be a speed decrease on
- > AC> slow
- > AC> Amigas, but otherwise, your program will be sync'ed to the vertical
- > AC> blank, which (apart from differences between NTSC and PAL, which you
- > AC> can
- > AC> detect with the Ntsc function) is always the same speed.
- >Wrong. Sorry Andy, but:
- >This assumes that you main loop will be compleated within one screen
- >refresh.
-
- Read carefully what I said above: "If your loops are long, there may be a
- speed decrease on slow Amigas". Granted, I did not say under what specific
- circumstances there would be a speed decrease, but I am certainly not
- "wrong". It would have been more appropriate for you to say, "To elaborate,
- there will be a speed decrease if your main loop takes longer than one
- vertical blank period on a 68000 and takes less than one on a 68020+." Or
- something along those lines.
-
- >If your main loop takes longer than 1 vbl cycle on an 68000 and less than 1
- >on a 68+ then there will be a speed increase on the faster machine.
-
- Same thing - it depends which angle you're coming from. If you're used to
- 68000's, then it's a speed increase. If you're used to an 030/040, it's a
- speed decrease.
-
- --Andy Church
-
-